# coding=utf-8

class Resource():
    def __init__(self, id, name, status):
        self.id = id
        self.name = name
        self.status = status

    def startup(self):
        pass

    def destroy(self):
        pass


class ResouceStatus(object):
    UNAVAILABLE = 'UNAVAILABLE'  # 资源不可用
    STARTED = 'STARTED'  # 资源已启动
    STOPED = 'STOPED'  # 资源已停止
    BUSY = 'BUSY'  # 资源忙碌
    IDEL = 'IDEL'  # 资源空闲
